-- GENERATED SPELL FOR [Shadowforge Geologist] --


function spell0_7030(pUnit, Event) --@Flame Lash,n/a--
pUnit:FullCastSpellOnTarget(3356,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7030', 46000, 1)
end

function spell1_7030(pUnit, Event) --@Flame Spike,n/a--
pUnit:FullCastSpellOnTarget(8814,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7030', 12000, 1)
end

function Sorts_7030(pUnit, Event)
local choix_sorts_7030 = math.random(0, 1)
if choix_sorts_7030 == 0 then
pUnit:RegisterEvent('spell0_7030', 1, 1)
end
if choix_sorts_7030 == 1 then
pUnit:RegisterEvent('spell1_7030', 1, 1)
end
end

function mob7030_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7030', math.random(1500, 3000), 1)
end

function mob7030_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7030_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7030_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7030, 1, 'mob7030_Action')
RegisterUnitEvent(7030, 2, 'mob7030_Leave')
RegisterUnitEvent(7030, 3, 'mob7030_Kill')
RegisterUnitEvent(7030, 4, 'mob7030_Die')
